package enums;

/**
 * @Classname FinalSeason
 * @Description 枚举类的第一种写法
 * @Date 2023/1/26 13:18
 * @Created by louzhuangxi
 */
public class FinalSeason {
    private final String seasonName;
    private final String seasonContent;

    private FinalSeason(String seasonName, String seasonContent) {
        this.seasonName = seasonName;
        this.seasonContent = seasonContent;
    }

    public static final FinalSeason SPRING = new FinalSeason("春天", "春暖花开");
    public static final FinalSeason SUMMER = new FinalSeason("夏天", "夏日炎炎");
    public static final FinalSeason AUTUMN = new FinalSeason("秋天", "秋高气爽");
    public static final FinalSeason WINTER = new FinalSeason("冬天", "白雪皑皑");

    public String getSeasonName() {
        return seasonName;
    }

    public String getSeasonContent() {
        return seasonContent;
    }
}

class FinalSeasonTest {
    public static void main(String[] args) {
        String seasonName = FinalSeason.SPRING.getSeasonName();
        String seasonContent = FinalSeason.SPRING.getSeasonContent();
        System.out.println(seasonName + "/" + seasonContent);
    }
}
